home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 213_01 / jario.h < prev    next >
Text File  |  1980-01-01  |  2KB  |  72 lines

  1. /* JARIO.H        VERS:- 01.00  DATE:- 09/26/86  TIME:- 09:36:40 PM */
  2. /* 
  3. Description:
  4.  
  5. Header file, with various constants, including input-output.
  6.  
  7. By J.A. Rupley, Tucson, Arizona
  8. Coded for BDS C compiler, version 1.50a
  9. */
  10.  
  11. #define EOF        -1    /* Common constants    */
  12. #define ERROR        -1
  13. #define NULL        '\0'
  14. #define EOS        NULL
  15. #define TRUE        1
  16. #define FALSE        NULL
  17.  
  18.  
  19. #define CTRLA        0x01    /* nondisplayables    */
  20. #define CTRLB        0x02
  21. #define CTRLC        0x03
  22. #define CTRLD        0x04
  23. #define CTRLE        0x05
  24. #define CTRLF        0x06
  25. #define CTRLG        0x07
  26. #define CTRLH        0x08
  27. #define CTRLI        0x09
  28. #define CTRLJ        0x0A
  29. #define CTRLK        0x0B
  30. #define CTRLL        0x0C
  31. #define CTRLM        0x0D
  32. #define CTRLN        0x0E
  33. #define CTRLO        0x0F
  34. #define CTRLP        0x10
  35. #define CTRLQ        0x11
  36. #define CTRLR        0x12
  37. #define CTRLS        0x13
  38. #define CTRLT        0x14
  39. #define CTRLU        0x15
  40. #define CTRLV        0x16
  41. #define CTRLW        0x17
  42. #define CTRLX        0x18
  43. #define CTRLY        0x19
  44. #define CTRLZ        0x1A
  45. #define CTRL_ESC    0x1B
  46. #define CTRL_FS        0x1C
  47. #define CTRL_GS        0x1D
  48. #define CTRL_RS        0x1E
  49. #define CTRL_US        0x1F
  50. #define DEL        0x7F
  51.  
  52.  
  53. #define CLS        putchar(26)    /* Terminal IO        */
  54. #define ESC        putchar(27)
  55. #define HOME        putchar(30)
  56. #define BUF_SIZE    80
  57. #define SCREEN_HEIGHT    23
  58. #define TAB        5
  59.  
  60. #define STD_IN    0            /* Fd-Iobuf values for device io */
  61. #define STD_OUT 1
  62. #define STD_ERR 4
  63. #define DEV_LST 2
  64. #define DEV_RDR 3
  65. #define DEV_PUN 3
  66.  
  67. #define    READ    0            /* Modes for file IO    */
  68. #define WRITE    1
  69. #define RW    2
  70. #define APPEND    3
  71.  
  72.